package com.exam.test;

import org.apache.logging.log4j.LogManager;

public class test {

	public static void main(String[] args) {
		try {  
            System.out.println("Hello World!");  
  
            LogManager.getLogger(test.class).trace("开始调试了trace");  
            LogManager.getLogger(test.class).debug("开始调试了debug");  
            LogManager.getLogger(test.class).info("开始调试了info");  
            LogManager.getLogger(test.class).warn("开始调试了error");  
            LogManager.getLogger(test.class).error("开始调试了error");  
            LogManager.getLogger(test.class).fatal("开始调试了fatal");  
  
            int i = 1 / 0;  
        } catch (Exception ex) {  
            LogManager.getLogger(test.class).error(ex.getMessage());  
        }  
	}

}
